package model.location;

import model.Coordinate;

public class WorldCoordinate extends Coordinate {

	private int _z;
	
	public int getZ() {
		return _z;
	}

	public void setZ(int z) {
		this._z = z;
	}
	
	public WorldCoordinate(int x, int y, int z) {
		super(x, y);
		setZ(z);
	}
	
	public WorldCoordinate()
	{
		super(-1, -1);
		setZ(-1);
	}
	
	public boolean hasBeenInitialized()
	{
		return _x != -1 && _y != -1 && _z != -1;
	}

	@Override
	public String toString() 
	{
		return String.format("%d_%d_%d", _x,_y,_z);
	}
}
